import {get,post,shamPost} from '@/js_sdk/utils/request'
import {builderApi} from '@/js_sdk/config.js'

// 获取认证令牌
export const oauth_token = data => post(builderApi('/lykj-auth/oauth/token'),data)
// 获取认证令牌
export const shop_token = data => shamPost(builderApi('/lykj-auth/shop/token'),data)
// 获取用户信息
export const user_info = data => get(builderApi('/lykj-shop/user/info'),data)
// 获取用户信息
export const user_authentication = data => get(builderApi('/lykj-shop/zn/authenticationInfo'),data)
// 获取用户信息
export const get_sign_contract = data => get(builderApi('/lykj-shop/zn/querySignContract'),data)
// 获取用户信息
export const get_customer_info = data => get(builderApi('/lykj-shop/zn/customerInfo'),data)
//查询消费记录列表
export const pay_withdrawal_list = data => post(builderApi('/lykj-shop/user/bill/page'), data)
//查询消费记录列表
export const bind_account_unbind = data => shamPost(builderApi('/lykj-shop/zn/bindAccountUnBind'), data)
export const update_nick_name = data => post(builderApi('/lykj-shop/zn/updateNickName'), data)
export const send_customer_verify_code = data => post(builderApi('/lykj-shop/zn/sendCustomerVerifyCode'), data)
export const modify_mobile_phone = data => post(builderApi('/lykj-shop/zn/modifyMobilePhone'), data)

export const update_openid = data => post(builderApi('/lykj-shop/zn/bindWechat'), data)



export const feed_back = data => post(builderApi('/lykj-shop/user/feedback/save'),data)

export const list_feed_back = data => get(builderApi('/lykj-shop/user/feedback/list'),data)
export const feed_back_detail = data => get(builderApi('/lykj-shop/user/feedback/detail'),data)


// 我的团队
export const get_team = data => get(builderApi('/lykj-shop/user/lazy-list'),data)

//查询消费记录列表
export const user_withdrawal = data => shamPost(builderApi('/lykj-shop/user/withdrawal'), data)

export const extract_page = data => get(builderApi('/lykj-shop/user/extract/page'), data)

export const unconfirmed_list = data => get(builderApi('/lykj-shop/zn/unconfirmedList'), data)


export const protocol_trade_confirm = data => post(builderApi('/lykj-shop/zn/protocolTradeConfirm'), data)
export const maker_record_list = data => get(builderApi('/lykj-shop/zn/makerRecordList'), data)



// 退出登录
export const oauth_logout = data => get(builderApi('/lykj-auth/oauth/logout'), data)

//注册
export const shop_register = data => shamPost(builderApi('/lykj-shop/user/register'), data)

//注册
export const shop_activate = data => shamPost(builderApi('/lykj-shop/user/activate'), data)
//获取验证码
export const get_code = data => post(builderApi('/lykj-shop/zn/sendRegisterVerifyCode'),data)
//查询用户余额
export const balance_query = data => get(builderApi('/lykj-shop/zn/balanceQuery'), data)
// 获取验证码
export const oauth_captcha = data => get(builderApi('/lykj-auth/oauth/captcha'), data)
// 获取验证码
export const sendVerifyCode = data => post(builderApi('/lykj-shop/zn/sendVerifyCode'), data)
// 获取验证码
export const resetLoginPwd = data => post(builderApi('/lykj-shop/zn/resetLoginPwd'), data)

// 绑卡
export const bind_account = data => post(builderApi('/lykj-shop/zn/bindAccountBind'),data)
// 验证绑卡
export const bind_verification = data => post(builderApi('/lykj-shop/zn/bindVerification'),data)
//获取绑定银行卡
export const get_account = data => get(builderApi('/lykj-shop/zn/bindAccountList'),data)
//设置支付密码
export const pay_password = data => post(builderApi('/lykj-shop/zn/fundPasswordReset'),data)

//获取绑定银行卡
export const sign_contract = data => post(builderApi('/lykj-shop/zn/signContract'),data)



// 上传实名申请证件照
export const upload = data => post(builderApi('/lykj-shop/zn/uploadApplyPhoto'),data)

// 上传实名申请证件照
export const real_name = data => post(builderApi('/lykj-shop/zn/authenticationApply'),data)


// 上传实名申请证件照
export const bill_page = data => get(builderApi('/lykj-shop/user/bill/page'),data)






